package cn.wolfcode.web.feign;


import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.SeckillProductVo;
import cn.wolfcode.web.feign.fallback.SeckillProductFeginFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "seckill-service",fallback = SeckillProductFeginFallback.class)
public interface SeckillProductFeginApi {
    @RequestMapping("/seckillProduct/selectByType")
    Result<List<SeckillProductVo>> selectByTypes(@RequestParam("type") int type);
}
